package simbot.example.data.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import simbot.example.data.domain.MnUser;
import simbot.example.data.service.MnUserService;
import simbot.example.data.mapper.MnUserMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class MnUserServiceImpl extends ServiceImpl<MnUserMapper, MnUser>
        implements MnUserService {
    @Autowired
    private MnUserMapper mnUserMapper;

    @Override
    public MnUser selectByCode(String accountCode) {
        QueryWrapper<MnUser> wrapper = new QueryWrapper();
        wrapper.eq("code",accountCode);
        MnUser mnUser = mnUserMapper.selectOne(wrapper);
        return mnUser;
    }
}




